package Part1_泛型的使用;

/**
 * ClassName: BirthDay
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.04.17 16:44
 */
public class BirthDay {
    private Integer year;
    private Integer month;
    private Integer day;

    public BirthDay(Integer year, Integer month, Integer day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {
        this.day = day;
    }

    @Override
    public String toString() {
        return
                "year=" + year + ", month=" + month + ", day=" + day ;
    }

}
